﻿@model Janus.Mes.VO.SysConfigVO

@{
    Layout = null;
    var i = 1;
    ViewBag.ViewTitle = "新增-缺陷分类";
}
<div class="pageContent">
    <form method="post" action="System/SysConfig/create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">
        @Html.ValidationSummary(true)
        <div class="pageFormContent" layouth="56">
            <input id="hidIsCreate" name="hidIsCreate" type="hidden" value="@ViewBag.IsCreate" />
            @Html.HiddenFor(model => model.Id)
            <p>
                <label>
                    检测环境编号：
                </label>

                @if (ViewBag.IsCreate == true)
                {
                    @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @class = "required IsExisted", ajaxurl = "System/SysConfig/IsExist" })
                }
                else
                {
                    @Html.TextBoxFor(sysConfig => sysConfig.Key, new { @Readonly = "true" })
                }
                @Html.ValidationMessageFor(sysConfig => sysConfig.Key)
            </p>
            <p>
                <label>
                    检测环境名称：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
            </p>
            <p style="width:100%;height:50px">
                <label>
                    备注：
                </label>
                @Html.TextAreaFor(sysConfig => sysConfig.Title, new { @style = "width:50%;height:30px" })
            </p>
            <p>            
                <a class="btnLook" href="BaseData/InspectionEMT/Select" lookupgroup="org1">选择环境项目</a>
                <span>添加环境项目</span>
            </p>
            <table class="treetable list" width="100%">
                <thead>
                    <tr>                       
                        <th>序号</th>
                        <th>环境项目</th>
                        <th>环境指标1</th>
                        <th>环境指标2</th>
                        <th>环境单位</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>温度</td>
                        <td>15</td>
                        <td>30</td>
                        <td>℃</td>
                        <td><a href="javacript:'void'">删除</a></td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>湿度</td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td><a href="javacript:'void'">删除</a></td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td>洁净度</td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td><a href="javacript:'void'">删除</a></td>
                    </tr>
                </tbody>
            </table>
            @Html.Partial("Operation", Model)
        </div>
        
        @Html.Partial("FormButtonBar")
    </form>
</div>
